{include file="public_head" /}
<!-- upload -->
<link href="__STATIC__/css/uploads.css" rel="stylesheet">
<!-- upload_arr -->
<link href="__STATIC__/plupload/plupload.css" rel="stylesheet">
<!-- Select2 -->
<link href="__STATIC__/css/select/select2.min.css" rel="stylesheet">
<!-- sku -->
<link href="__STATIC__/css/sku.css" rel="stylesheet" type="text/css">
<!-- Select2 -->
<link href="__STATIC__/css/select/select2.min.css" rel="stylesheet">
<!-- Select2 -->
<link href="__STATIC__/css/select/select2.min.css" rel="stylesheet">
<link rel="stylesheet" href="/pic/js/amazeui.min.css" />
<!-- select -->
<script src="__STATIC__/js/select/select2.full.min.js"></script>
<body class="nav-md">

<div class="container body">

    <div class="main_container">

        {include file="public_sidebar,public_nav" /}
        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">

                <div class="page-title">
                    <div class="title_left">
                        <h3>理赔详情</h3>
                    </div>
                </div>
                <div class="clearfix"></div>
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <ul class="nav navbar-right panel_toolbox">
                                    <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                    </li>
                                    <li><a class="close-link"><i class="fa fa-close"></i></a>
                                    </li>
                                </ul>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <br/>
                                <form class="form-horizontal form-label-left" action="" method="post" id="registerForm" enctype="multipart/form-data">

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">Id：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12" style="margin-top: 10px;">
                                            {$data.id|default=''}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">用户账号：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12" style="margin-top: 10px;">
                                            {$data.username|default=''}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">车主姓名：</label>
                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <input type="text" placeholder=""
                                                   class="form-control col-md-7 col-xs-12" name="car_name"
                                                   value="{$data.car_name|default=''}" datatype="*" nullmsg="请填写身份证号"
                                            >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">投保人姓名：</label>
                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <input type="text" placeholder=""
                                                   class="form-control col-md-7 col-xs-12" name="protect_name"
                                                   value="{$data.protect_name|default=''}" datatype="*" nullmsg="请填写投保人姓名"
                                            >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">手机号：</label>
                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <input type="text" placeholder=""
                                                   class="form-control col-md-7 col-xs-12" name="tel"
                                                   value="{$data.tel|default=''}" datatype="*" nullmsg="请填写身份证号"
                                            >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">投保城市：</label>
                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <input type="text" placeholder=""
                                                   class="form-control col-md-7 col-xs-12" name="tb_city"
                                                   value="{$data.tb_city|default=''}" datatype="*" nullmsg="请填写投保城市"
                                            >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">车牌号：</label>
                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <input type="text" placeholder=""
                                                   class="form-control col-md-7 col-xs-12" name="car_number"
                                                   value="{$data.car_number|default=''}" datatype="*" nullmsg="请填写车牌号"
                                            >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">品牌类型：</label>
                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <input type="text" placeholder=""
                                                   class="form-control col-md-7 col-xs-12" name="brand_type"
                                                   value="{$data.brand_type|default=''}" datatype="*" nullmsg="请填写品牌类型"
                                            >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">车辆识别码：</label>
                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <input type="text" placeholder=""
                                                   class="form-control col-md-7 col-xs-12" name="car_code"
                                                   value="{$data.car_code|default=''}" datatype="*" nullmsg="请填写车辆识别码"
                                            >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">发动机号：</label>
                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <input type="text" placeholder=""
                                                   class="form-control col-md-7 col-xs-12" name="engine_number"
                                                   value="{$data.engine_number|default=''}" datatype="*" nullmsg="请填写发动机号"
                                            >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">注册登记日：</label>
                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <input type="text" placeholder="" onClick="WdatePicker()"
                                                   class="form-control col-md-7 col-xs-12" name="register_time"
                                                   value="{$data.register_time|default=''}" datatype="*" nullmsg="请填写身份证号"
                                            >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">保险到期日：</label>
                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <input type="text" placeholder="" onClick="WdatePicker()"
                                                   class="form-control col-md-7 col-xs-12" name="insurance_expiration_time"
                                                   value="{$data.insurance_expiration_time|default=''}" datatype="*" nullmsg="请填写保险到期日"
                                            >
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">创建时间：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12" style="margin-top: 10px;">
                                            {$data.create_time|default=''}
                                        </div>
                                    </div>

                                    <div class="form-group service_people">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">当前理赔流程：</label>
                                        <div class="col-md-4 col-sm-6 col-xs-12">
                                            <table class="table table-striped table-bordered table-hover">
                                                <thead>
                                                <tr><th>标题</th>
                                                    <th>理赔时间</th>
                                                </tr></thead>
                                                <tbody>
                                                {volist name="$lipei_data" id="vo"}
                                                <tr>
                                                    <td>{$vo.lipei_type_id}</td>
                                                    <td>{$vo.create_time}</td>
                                                </tr>
                                                {/volist}
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">理赔内容：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <label class="radio_box">
                                                <input type="radio" name="status" id="status_11" class="cartradio"
                                                       value="1"
                                                       datatype="*"
                                                       nullmsg="请选择启用状态！" errormsg="请选择启用状态！"
                                                       checked

                                                >&nbsp;&nbsp;
                                                <label for="status_11"></label>
                                                <span>下拉框</span>
                                                &nbsp;&nbsp;
                                            </label>
                                            <label class="radio_box">
                                                <input type="radio" name="status" id="status_21" class="cartradio"
                                                       value="2"
                                                       datatype="*"
                                                       nullmsg="请选择启用状态！" errormsg="请选择启用状态！"
                                                       {eq name='item.status|default=""' value='2' }
                                                       checked
                                                       {/eq}
                                                >&nbsp;&nbsp;
                                                <label for="status_21"></label>
                                                <span>表单</span>
                                                &nbsp;&nbsp;
                                            </label>
                                        </div>
                                    </div>
                                    <div>
                                    <div id="sel">
                                        <div class="form-group">
                                            <label class="control-label col-md-3 col-sm-3 col-xs-12">理赔添加：</label>
                                            <div class="input-group" style="float: left;margin: 0 10px;">
                                                <select name="lipei_id" id="status" class="select2_single" style="width: 300px;" onchange="cha(this.value,this)"
                                                        tabindex="-1">
                                                    <option value="0">无</option>
                                                    {volist name=":model('lipei_type')->select()" id="vo"}
                                                    <option value="{$vo.title}" >{$vo.title}</option>
                                                    {/volist}

                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                    </div>
                                    <div id="inp">

                                    </div>
                                    <script>
                                        $('#status_21').click(function () {
                                            $('#inp').html('');
                                            $('#sel').html('');
                                            var str = '<div class="form-group">\n' +
                                                '                                            <label class="control-label col-md-3 col-sm-3 col-xs-12">理赔添加：</label>\n' +
                                                '                                            <div class="input-group" style="float: left;margin: 0 10px;">\n' +
                                                '                                                <input type="text" name="lipei_id">\n' +
                                                '                                            </div>\n' +
                                                '                                        </div>';
                                            $('#inp').html(str);
                                        });
                                        $('#status_11').click(function () {
                                            $('#sel').html('');
                                            $('#inp').html('');

                                            var data = {:model('lipei_type')->select()};
                                            var str = '<div class="form-group"> <label class="control-label col-md-3 col-sm-3 col-xs-12">理赔添加：</label> <div class="input-group" style="float: left;margin: 0 10px;"> <select name="lipei_id" id="status" class="select2_single" style="width: 300px;" tabindex="-1">';
                                            str += '<option value="0">无</option>';
                                            $.each(data, function(k,v){
                                                str += '<option value="'+v.title+'" >'+v.title+'</option>';
                                            });
                                            str += '</select>';
                                            str += '<script src="__STATIC__\/js\/select\/select2.full.min.js"><\/script>';
                                            str +="<script>\n" +
                                                "                                        $(\".select2_single\").select2({\n" +
                                                "                                            placeholder: \"请选择分类\",\n" +
                                                "                                            allowClear: true\n" +
                                                "                                        });\n" +
                                                "                                    <\/script>";


                                            <!-- select -->


                                            $('#sel').html(str);
                                        });


                                    </script>
                                    <div class="form-group">
                                        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                                            {present name="$data.id"}
                                            <input type="hidden" name="id" value="{$data.id}">
                                            {/present}
                                            <button type="submit" class="btn btn-primary">提交</button>
                                            <a type="reset" class="btn btn-success" onclick="history.go(-1)">返回</a>
                                        </div>
                                    </div>

                                </form>
                            </div>
                        </div>
                    </div>
                </div>


            </div>
            <!-- /page content -->

        </div>

    </div>
</div>

{include file="public_foot" /}
<!-- upload_arr -->
<script src="__STATIC__/js/upload.photos.js"></script>
<script type="text/javascript" src="__STATIC__/plupload/plupload.full.min.js"></script>
<!-- upload -->
<script type="text/javascript" src="__STATIC__/js/uploadPreview.js"></script>
<!-- Times -->
<script src='__STATIC__/js/datepicker/WdatePicker.js'></script>
<!-- validform -->
<script src="__STATIC__/js/Validform_v5.3.2_min.js"></script>
<script src="__STATIC__/js/layer.js"></script>
<!-- select -->
<script src="__STATIC__/js/select/select2.full.min.js"></script>

<!-- select -->
<script src="__STATIC__/js/select/select2.full.min.js"></script>
<!-- ueditor -->
<script type="text/javascript" charset="utf-8" src="__STATIC__/editor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__STATIC__/editor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="__STATIC__/editor/lang/zh-cn/zh-cn.js"></script>
<!--select-->
<!-- Times -->
<script src='__STATIC__/js/datepicker/WdatePicker.js'></script>
<script src="__STATIC__/js/select/select2.full.min.js"></script>
<script>

    function cha(v,t){
        if(v == 0){
            //$(t).attr('name','');
           // $(t).parent().parent().attr('style','display:none');
        }
    }
    // select2
    $(".select2_single").select2({
        placeholder: "请选择分类",
        allowClear: true
    });
    new uploadPreview({UpBtn: "up_img", DivShow: "imgdiv", ImgShow: "imgShow"});
    new uploadPreview({UpBtn: "up_img1", DivShow: "imgdiv1", ImgShow: "imgShow1"});
    new uploadPreview({UpBtn: "up_img3", DivShow: "imgdiv3", ImgShow: "imgShow3"});
    new uploadPreview({UpBtn: "up_img4", DivShow: "imgdiv4", ImgShow: "imgShow4"});

    //validform
    $(function () {

        $.Tipmsg.r = null;

        var showmsg = function (msg) {
            //假定你的信息提示方法为showmsg， 在方法里可以接收参数msg，当然也可以接收到o及cssctl;
            alert(msg);
        }
        $("#registerForm").Validform({
            tiptype: function (msg) {
                layer.msg(msg);
            },
            tipSweep: true
        });
        // select2
        $(".select2_single").select2({
            placeholder: "请选择分类",
            allowClear: true
        });

    })
    new uploadPreview({UpBtn: "up_img", DivShow: "imgdiv", ImgShow: "imgShow"});
    new uploadPreview({UpBtn: "up_img1", DivShow: "imgdiv1", ImgShow: "imgShow1"});

</script>
</body>
<!--与代码无关可以删除-->
<script src="/pic/js/jquery.min.js"></script>
<script src="/pic/js/amazeui.js"></script>
</html>
<script>
    new uploadPreview({UpBtn: "up_img", DivShow: "imgdiv", ImgShow: "imgShow"});
    new uploadPreview({UpBtn: "up_img1", DivShow: "imgdiv1", ImgShow: "imgShow1"});
</script>
